package com.wen.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.common.utils.PageUtils;
import com.wen.gulimall.ware.entity.WareSkuEntity;
import com.wen.gulimall.ware.vo.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author Wenjl
 * @email 2021212321@qq.com
 * @date 2022-07-20 20:09:54
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 采购商品入库
     * @param skuId 商品id
     * @param wareId 仓库id
     * @param skuNum 采购数量
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVo> getSKusHasStock(List<Long> skuIds);
}

